package org.crazyit.activiti_d5._1_Command;

public class Client {

    public static void main(String[] args) {

        //1. 创建命令执行者
        CommandExecutor executor = new CommandExecutor();

        //2. 创建命令A, 交由命令执行者执行
        CommandA commandA = new CommandA();
        executor.execute(commandA);

        //3. 创建命令B, 交由命令执行者执行
        CommandB commandB = new CommandB();
        executor.execute(commandB);

    }

}
